/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package saves.objects;

import menu.ItemInterface;
import menu.Menu;
import menu.TalkInterface;
import org.jbox2d.dynamics.World;
import saves.Area;
import saves.EntidadeNave;

/**
 *
 * @author u11173
 */
public class Bot extends Nave {
    private static final long serialVersionUID = 1L;

    protected Bot() {}
    
    public Bot(float x, float y, EntidadeNave nave, World world) {
        super(x, y, nave, world);
    }
    
    @Override
    public void update(int delta, Area area) {
        //todo bot's ai (math)
        super.update(delta, area);
    }
    
    @Override
    public String[] getInterfaces() {
        return new String[] {"Talk", "Disabled Ship"};
    }
    
    @Override
    public Menu getInterface(int cod, EntidadeNave player) {
        switch (cod) {
            case 0:
                return new TalkInterface(player, this.getEntidade());
            case 1:
                return new ItemInterface(player, this.getEntidade(), 3); //only if the ship is disabled
            default:
                return null;
        }
    }
    
    @Override
    public String toString() {
        return getEntidade().getNome();
    }
}
